package com.usc.blog.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BlogDataExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BlogDataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBlogdataidIsNull() {
            addCriterion("blogdataid is null");
            return (Criteria) this;
        }

        public Criteria andBlogdataidIsNotNull() {
            addCriterion("blogdataid is not null");
            return (Criteria) this;
        }

        public Criteria andBlogdataidEqualTo(String value) {
            addCriterion("blogdataid =", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidNotEqualTo(String value) {
            addCriterion("blogdataid <>", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidGreaterThan(String value) {
            addCriterion("blogdataid >", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidGreaterThanOrEqualTo(String value) {
            addCriterion("blogdataid >=", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidLessThan(String value) {
            addCriterion("blogdataid <", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidLessThanOrEqualTo(String value) {
            addCriterion("blogdataid <=", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidLike(String value) {
            addCriterion("blogdataid like", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidNotLike(String value) {
            addCriterion("blogdataid not like", value, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidIn(List<String> values) {
            addCriterion("blogdataid in", values, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidNotIn(List<String> values) {
            addCriterion("blogdataid not in", values, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidBetween(String value1, String value2) {
            addCriterion("blogdataid between", value1, value2, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andBlogdataidNotBetween(String value1, String value2) {
            addCriterion("blogdataid not between", value1, value2, "blogdataid");
            return (Criteria) this;
        }

        public Criteria andDataurlIsNull() {
            addCriterion("dataurl is null");
            return (Criteria) this;
        }

        public Criteria andDataurlIsNotNull() {
            addCriterion("dataurl is not null");
            return (Criteria) this;
        }

        public Criteria andDataurlEqualTo(String value) {
            addCriterion("dataurl =", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlNotEqualTo(String value) {
            addCriterion("dataurl <>", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlGreaterThan(String value) {
            addCriterion("dataurl >", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlGreaterThanOrEqualTo(String value) {
            addCriterion("dataurl >=", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlLessThan(String value) {
            addCriterion("dataurl <", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlLessThanOrEqualTo(String value) {
            addCriterion("dataurl <=", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlLike(String value) {
            addCriterion("dataurl like", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlNotLike(String value) {
            addCriterion("dataurl not like", value, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlIn(List<String> values) {
            addCriterion("dataurl in", values, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlNotIn(List<String> values) {
            addCriterion("dataurl not in", values, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlBetween(String value1, String value2) {
            addCriterion("dataurl between", value1, value2, "dataurl");
            return (Criteria) this;
        }

        public Criteria andDataurlNotBetween(String value1, String value2) {
            addCriterion("dataurl not between", value1, value2, "dataurl");
            return (Criteria) this;
        }

        public Criteria andBlogtitleIsNull() {
            addCriterion("blogtitle is null");
            return (Criteria) this;
        }

        public Criteria andBlogtitleIsNotNull() {
            addCriterion("blogtitle is not null");
            return (Criteria) this;
        }

        public Criteria andBlogtitleEqualTo(String value) {
            addCriterion("blogtitle =", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleNotEqualTo(String value) {
            addCriterion("blogtitle <>", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleGreaterThan(String value) {
            addCriterion("blogtitle >", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleGreaterThanOrEqualTo(String value) {
            addCriterion("blogtitle >=", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleLessThan(String value) {
            addCriterion("blogtitle <", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleLessThanOrEqualTo(String value) {
            addCriterion("blogtitle <=", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleLike(String value) {
            addCriterion("blogtitle like", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleNotLike(String value) {
            addCriterion("blogtitle not like", value, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleIn(List<String> values) {
            addCriterion("blogtitle in", values, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleNotIn(List<String> values) {
            addCriterion("blogtitle not in", values, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleBetween(String value1, String value2) {
            addCriterion("blogtitle between", value1, value2, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andBlogtitleNotBetween(String value1, String value2) {
            addCriterion("blogtitle not between", value1, value2, "blogtitle");
            return (Criteria) this;
        }

        public Criteria andDescribleIsNull() {
            addCriterion("describle is null");
            return (Criteria) this;
        }

        public Criteria andDescribleIsNotNull() {
            addCriterion("describle is not null");
            return (Criteria) this;
        }

        public Criteria andDescribleEqualTo(String value) {
            addCriterion("describle =", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleNotEqualTo(String value) {
            addCriterion("describle <>", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleGreaterThan(String value) {
            addCriterion("describle >", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleGreaterThanOrEqualTo(String value) {
            addCriterion("describle >=", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleLessThan(String value) {
            addCriterion("describle <", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleLessThanOrEqualTo(String value) {
            addCriterion("describle <=", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleLike(String value) {
            addCriterion("describle like", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleNotLike(String value) {
            addCriterion("describle not like", value, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleIn(List<String> values) {
            addCriterion("describle in", values, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleNotIn(List<String> values) {
            addCriterion("describle not in", values, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleBetween(String value1, String value2) {
            addCriterion("describle between", value1, value2, "describle");
            return (Criteria) this;
        }

        public Criteria andDescribleNotBetween(String value1, String value2) {
            addCriterion("describle not between", value1, value2, "describle");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeIsNull() {
            addCriterion("blogdatatype is null");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeIsNotNull() {
            addCriterion("blogdatatype is not null");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeEqualTo(String value) {
            addCriterion("blogdatatype =", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeNotEqualTo(String value) {
            addCriterion("blogdatatype <>", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeGreaterThan(String value) {
            addCriterion("blogdatatype >", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeGreaterThanOrEqualTo(String value) {
            addCriterion("blogdatatype >=", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeLessThan(String value) {
            addCriterion("blogdatatype <", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeLessThanOrEqualTo(String value) {
            addCriterion("blogdatatype <=", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeLike(String value) {
            addCriterion("blogdatatype like", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeNotLike(String value) {
            addCriterion("blogdatatype not like", value, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeIn(List<String> values) {
            addCriterion("blogdatatype in", values, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeNotIn(List<String> values) {
            addCriterion("blogdatatype not in", values, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeBetween(String value1, String value2) {
            addCriterion("blogdatatype between", value1, value2, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andBlogdatatypeNotBetween(String value1, String value2) {
            addCriterion("blogdatatype not between", value1, value2, "blogdatatype");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createdate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createdate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createdate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createdate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createdate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createdate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createdate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createdate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createdate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createdate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createdate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createdate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNull() {
            addCriterion("username is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("username is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("username =", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("username <>", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("username >", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("username >=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("username <", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("username <=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("username like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("username not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("username in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("username not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("username between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("username not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}